<?PHP
/*
	REMOVE THIS PAGE
*/
class user_process
{
	
	function user_process()
	{
		global $auth_session;


		 if(isset($_GET['logout']))
			{
				$auth_session->logout();
			}
		else if(!empty($_POST['login']))
				{

					mp("Logging In");

					$auth_session->post=$_POST;
					if(check_email_address($_POST['user_name'])){$auth_session->login_mode='email';};

					if(!$auth_session->log_in())
					{
						mp($auth_session->error);
						
						$login_error=TRUE;
						//$login_error=TRUE;
					}
					else
					{
						global $conf;
						
						mp($conf->ref);
					
							
					
					
						
						mp("Login Successful");
					}


				}
		
		
		
		
		
	}
}

$user_process=new user_process;
?>